package com.yangyouqi.posthorse.web.from;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;


/**
 * @author 杨友奇
 * @Time 2018/6/30
 * 帮我送表单验证
 */
@Data
public class AddForDeliverFrom {

    //收货人姓名
    @NotEmpty(message = "收货人姓名不能为空")
    private String consignee;

    // 收货人电话
    @NotEmpty(message = "收货人电话不能为空")
    private String consigneeMobile;

    // 物品（取、买、送）
    @NotEmpty(message = "送货物品不能为空")
    private String goods;

    // 送货人姓名、
    @NotEmpty(message = "送货人姓名不能为空")
    private String consigner;

    // 送货人电话、
    @NotEmpty(message = "送货人电话不能为空")
    private String consignerMobiel;


    //送货人地址
    @NotEmpty(message = "送货人地址不能为空")
    private String pickupAddresr;
}
